/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2011
 */

package com.mw.businuss.user.service;

import javacommon.base.BaseManager;
import javacommon.base.EntityDao;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.org.rapid_framework.page.Page;
import cn.org.rapid_framework.page.PageRequest;

import com.mw.businuss.user.dao.UserinfoDao;
import com.mw.businuss.user.model.Userinfo;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */

@Service
@Transactional
public class UserinfoManager extends BaseManager<Userinfo,java.lang.String>{

	private UserinfoDao userinfoDao;
	/**增加setXXXX()方法,spring就可以通过autowire自动设置对象属性,请注意大小写*/
	public void setUserinfoDao(UserinfoDao dao) {
		this.userinfoDao = dao;
	}
	public EntityDao getEntityDao() {
		return this.userinfoDao;
	}
	
	@Transactional(readOnly=true)
	public Page findPage(PageRequest query) {
		return userinfoDao.findPage(query);
	}
	
}
